﻿using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Messaging;
using Tp.Interfaces.Commands;

namespace Tp.MainViewModel
{
	  public class DialogViewModelCommands : IDialogViewModelCommands
	  {
			#region Fields

			public RelayCommand CloseDialogCommand { get; set; }

			#endregion

			#region Properties
			#endregion

			#region C-Tor

			public DialogViewModelCommands()
			{
				  this.RegisterCommands();
			}

			#endregion

			#region Private methods

			private void RegisterCommands()
			{
				  this.CloseDialogCommand = new RelayCommand(ExecuteCloseDialog);
			}

			private void ExecuteCloseDialog()
			{
				  Messenger.Default.Send("CLOSEDIALOG");
			}

			#endregion

	  }
}
